/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package net.icom.maf.ui;

import javax.microedition.lcdui.Graphics;

/**
 * Interface to the font class; font classes should be implemented in the 
 * @author josh.newnham
 */
public interface IFont {

    public void printString( Graphics g, int x, int y, String text, int hPos, int vPos );
    
    public void printString( Graphics g, int x, int y, String text, int hPos, int vPos, int fontNum );
    
    /**
     * return the height of the font 
     * @return
     */
    public int getFontHeight(); 
    
    /**
     * returns the width of the specified string
     * @param text
     * @return
     */
    public int getStringWidth( String text ); 
    
    /**
     * return the index of the specified character 
     * @param ch
     * @return
     */
    public int charIndex( char ch ); 
    
    /**
     * return the width of a character in reference to the loaded font file 
     * @param ch
     * @return
     */
    public int charWidth( char ch ); 
    
    
}
